Pay attention to the style guidelines.
https://bugzilla.gnome.org/show_bug.cgi?id=660600
Inhibitor.prototype = {
_init: function(objectPath) {
DBus.session.proxifyObject(this,
- "org.gnome.SessionManager",
+ 'org.gnome.SessionManager',
objectPath);
this.isLoaded = false;
this._loadingPropertiesCount = InhibitorIface.properties.length;
if (this._loadingPropertiesCount == 0) {
this.isLoaded = true;
- this.emit("is-loaded");
+ this.emit('is-loaded');
}
}));
}
Tweener.addTween(this, { opacity: 255,
xOffset: 0,
yOffset: 0,
- transition: "linear",
+ transition: 'linear',
onComplete: onComplete,
time: POPUP_ANIMATION_TIME });
},
Tweener.addTween(this, { opacity: 0,
xOffset: xOffset,
yOffset: yOffset,
- transition: "linear",
+ transition: 'linear',
time: POPUP_ANIMATION_TIME,
onComplete: Lang.bind(this, function () {
this.actor.hide();
}
if (extensions[uuid] != undefined) {
- logExtensionError(uuid, "extension already loaded");
+ logExtensionError(uuid, 'extension already loaded');
return;
}
this._extended_keys = this._key.get_extended_keys();
this._extended_keyboard = null;
- if (this._key.name == "Control_L" || this._key.name == "Alt_L")
+ if (this._key.name == 'Control_L' || this._key.name == 'Alt_L')
this._key.latch = true;
this._key.connect('key-pressed', Lang.bind(this, function ()
right_box.add(button.actor);
else
left_box.add(button.actor);
- if (key.name == "Caribou_Prefs") {
+ if (key.name == 'Caribou_Prefs') {
key.connect('key-released', Lang.bind(this, this.hide));
// Add new key for hiding message tray
function objectToString(o) {
if (typeof(o) == typeof(objectToString)) {
// special case this since the default is way, way too verbose
- return "<js function>";
+ return '<js function>';
} else {
- return "" + o;
+ return o.toString();
}
}
link = new St.Label({ text: '<error>' });
}
let hbox = new St.BoxLayout();
- let propText = propName + ": " + valueStr;
+ let propText = propName + ': ' + valueStr;
hbox.add(new St.Label({ text: propName + ': ' }));
hbox.add(link);
this._container.add_actor(hbox);
this.actor.move_anchor_point(Math.floor(sourceX + sourceWidth / 2),
Math.floor(sourceY + sourceHeight / 2));
Tweener.addTween(this.actor, { scale_x: 1, scale_y: 1,
- transition: "easeOutQuad",
+ transition: 'easeOutQuad',
time: 0.2 });
} else {
this.actor.set_scale(1, 1);
function notifyError(msg, details) {
// Also print to stderr so it's logged somewhere
if (details)
- log("error: " + msg + ": " + details);
+ log('error: ' + msg + ': ' + details);
else
- log("error: " + msg)
+ log('error: ' + msg);
notify(msg, details);
}
open: function(notification) {
if (this._client.is_handling_channel(this._channel)) {
// We are handling the channel, try to pass it to Empathy
- this._client.delegate_channels_async([this._channel], global.get_current_time(), "", null);
+ this._client.delegate_channels_async([this._channel], global.get_current_time(), '', null);
}
else {
// We are not the handler, just ask to present the channel
return;
status = this._statusForPresence(newPresence);
- msg = msg ? msg : "";
+ msg = msg ? msg : '';
this._accountMgr.set_all_requested_presences(newPresence, status, msg);
},
return;
status = this._statusForPresence(newPresence);
- msg = msg ? msg : "";
+ msg = msg ? msg : '';
this._expectedPresence = newPresence;
this._accountMgr.set_all_requested_presences(newPresence, status, msg);